package org.example.demo1startjava17.designPattern.cStructuralPatterns.c1DecoratorPattern.demo1;

import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;

@Component
public abstract class OrderServiceDecorator implements OrderService {
    @Resource
    protected OrderService simpleOrderService;

    @Override
    public double applyDiscount(double orderTotal) {
        return simpleOrderService.applyDiscount(orderTotal);
    }
}
